<template>
  <div class="block-item">
    <div class="block-title">
      <div class="line"></div>
      <div class="title">{{title}}</div>
      <div class="sub-title">{{subTitle}}</div>
    </div>
    <div class="block-content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "BlockItem",
  props:{
    title:{
      type:String,
      default:'',
    },
    subTitle:{
      type:String,
      default:'',
    },
  }
}
</script>

<style scoped lang="scss">
.block-item{
  position: relative;
  .block-title{
    width: calc(100% - 36px);
    display: flex;
    align-items: center;
    position: absolute;

    .line{
      width: 7px;
      height: 20px;
      border-radius: 16px;
      background: #31a7ff;
      margin-right: 8px;
      flex-grow: 0;
    }
    .title{
      color: #fff;
      flex-grow: 1;
    }
    .sub-title{
      flex-grow: 0;
      color: #efefef;
    }
  }
  .block-content{
    padding-top: 40px;
    width: 100%;
    height:100%;
  }
}

</style>
